package services.expertInfo;

import wt.entity.expertInfo.ExpertCertificate;
import wt.entity.expertInfo.ExpertCertificateExample;

import java.util.List;

/**
 * Created by Administrator on 2017/10/14.
 */
public interface ExpertCertificateServices extends IBaseExpertInfoServices<ExpertCertificate, ExpertCertificateExample> {

    /**
     * 根据专家证书的certificateTypeId 获取证书类型
     *
     * @param expertCertificateList
     */

    void lazyLoadCertificateType(List<ExpertCertificate> expertCertificateList) throws Exception;

    /**
     * 判断专家是否有该事项下的证书
     *
     * @param expertId
     * @param itemId
     * @return
     * @throws Exception
     */
    boolean isExistCertificate(String expertId, String itemId) throws Exception;

    /**
     * 专家 事项下的证书
     * @param expertId
     * @param itemId
     * @return
     * @throws Exception
     */
    ExpertCertificate adminSelect(String expertId, String itemId) throws Exception;

    /**
     * 专家 事项下的证书
     * @param expertId
     * @param itemNum
     * @return
     * @throws Exception
     */
    ExpertCertificate adminSelectByItemNum(String expertId, String itemNum) throws Exception;




}


